package com.lbb.springboot.scheduler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 日志定时器
 */
@Configuration
public class LogScheduler {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());



    /**
     * 访问日志定时入库,5分钟一次
     */
    @Scheduled(cron = "0 * * * * *")
    public void createInterviewTask() {
        logger.info("访问日志定时入库定时器开始");
        logger.info("访问日志定时入库定时器结束，结果：");
    }
}
